home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / fsmount / RCS / constants.ph,v < prev    next >
Encoding:
Text File  |  1991-11-19  |  1.4 KB  |  81 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    voelker:1.1; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     91.11.18.17.14.51;  author voelker;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @constants denoting return values from fscheck, and return
  17. values for fsmount
  18.  
  19. @
  20.  
  21.  
  22.  
  23. 1.1
  24. log
  25. @Initial revision
  26. @
  27. text
  28. @#
  29. # $Header$
  30. #
  31. # The file of return codes and other handy constants for use with fsmount.
  32. # (note: this is 'require()d' by the fsmount script.)
  33. #
  34.  
  35. $MAX_FIELD_LENGTH =     256;
  36. $MAX_LINE_LENGTH =      1024;
  37. $MAX_EXEC_ARGS =        20;
  38. $MAX_PASS =         10;
  39.  
  40. #
  41. # Return codes from fscheck.
  42. #
  43. $FSCHECK_OK =          0;
  44. $FSCHECK_SOFT_ERROR =      1;
  45. $FSCHECK_OUT_OF_MEMORY = 2;
  46. $FSCHECK_NOREBOOT =      3;
  47. $FSCHECK_REBOOT =      4;
  48.  
  49. $FSCHECK_HARD_ERROR =      -1;
  50. $FSCHECK_READ_FAILURE =  -2;
  51. $FSCHECK_WRITE_FAILURE = -3;
  52. $FSCHECK_BAD_ARG =      -4;
  53. $FSCHECK_MORE_MEMORY =      -5;
  54. $FSCHECK_DISK_FULL =      -6;
  55.  
  56. #
  57. # Return code from child process if the exec fails.
  58. #
  59. $EXEC_FAILED =          32;
  60.  
  61. #
  62. # Exit codes.
  63. #
  64. $OK =         0;
  65. $REBOOT =     1;
  66. $HARDERROR =     2;
  67. $SOFTERROR =     3;
  68. $NOREBOOT =     4;
  69.  
  70. #
  71. # Status of entry in mount table. Starts off as CHILD_OK, changes to 
  72. # CHILD_RUNNING while fscheck is running. If fscheck completes ok, 
  73. # then status changes to CHILD_CHECKED to indicate that the prefix should 
  74. # be attached. Otherwise the status changes to CHILD_FAILURE.
  75. #
  76. $CHILD_OK =             0;
  77. $CHILD_RUNNING =     1;
  78. $CHILD_FAILURE =     2;
  79. $CHILD_CHECKED =        3;
  80. @
  81.